﻿using System;
using System.Runtime.InteropServices;

namespace Vtron.HipcConfigurationTools.Domain
{
    /// <summary>
    /// 设置EDID信息的请求
    /// </summary>
    /// <remarks>
    /// typedef  struct
    /// {
    ///     T_HIPC_NET_HEADER     head;
    ///     Uint8               count;  //设置EDID的数量 ，目前支持设置三个
    ///     Uint8 dpOrDualLink; //0：dp信号  1: duallink信号
    ///     T_EDID_RESOLUTION     edidInfo[EDID_SUPPORT_MAX];
    /// } T_HIPC_EDID_CONFIG_RESP;
    /// </remarks>
    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct T_HIPC_EDID_CONFIG_RESP
    {
        #region Fields

        /// <summary>
        /// 网络协议数据头
        /// </summary>
        public T_HIPC_NET_HEADER head;

        /// <summary>
        /// 设置EDID的数量 ，目前支持设置三个
        /// </summary>
        public byte count;

        /// <summary>
        /// 0：dp信号  1: duallink信号
        /// </summary>
        public byte dpOrDualLink;

        /// <summary>
        /// 
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
        public T_EDID_RESOLUTION[] edidInfo;

        #endregion
    }
}
